#!/usr/bin/python3
# -*- coding: utf-8 -*-

def query_string(request):
    params = {}
    for item in request.query_string.split('&'):
        if '=' in item:
            k, v = item.split('=')
            params[k] = v
    return params